package com.management.department.teacherinfosystem.Repository;

import com.management.department.teacherinfosystem.Entity.PartyActivityAttendance;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface PartyActivityAttendanceRepository extends JpaRepository<PartyActivityAttendance, Long> {
	List<PartyActivityAttendance> findByActivityId(@Param("activityId") Long activityId);
	List<PartyActivityAttendance> findByUserId(@Param("userId") Long userId);
	PartyActivityAttendance findByActivityIdAndUserId(@Param("activityId") Long activityId, @Param("userId") Long userId);
} 